<?php
/**
 * (actions)
 */
namespace App\Admin\Actions\Reimburse;

use Encore\Admin\Grid\Tools\AbstractTool;
class ImportA extends AbstractTool
{
    /**
     * Render Export button.
     *
     * @return string
     */
    public function render()
    {
        $url = '/xqc/reimburse/apply-upload';
        return <<<EOT

<div class="btn-group">
    <button class="btn btn-sm btn-twitter">导入文件</button>
    <button type="button" class="btn btn-sm btn-twitter dropdown-toggle" data-toggle="dropdown">
        <span class="caret"></span>
        <span class="sr-only">Toggle Dropdown</span>
    </button>
    <ul class="dropdown-menu" role="menu">
        <li><a href="{$url}?type=apply">导入申请</a></li>
        <li><a href="{$url}?type=init">初始化导入</a></li>
    </ul>
</div>
EOT;
    }
}
